package com.jinbiao.quasar;

import com.jinbiao.quasar.scheduling.annotation.EnableScheduling;
import com.jinbiao.quasar.scheduling.annotation.Scheduled;
import org.noear.solon.Solon;
import org.noear.solon.annotation.SolonMain;
import org.noear.solon.core.util.LogUtil;
import org.noear.solon.logging.utils.LogUtilToSlf4j;
import org.noear.solon.web.cors.CrossFilter;

/**
 * @author caijinbiao
 */
@EnableScheduling
@SolonMain
public class App {
    public static void main(String[] args) {
        Solon.start(App.class, args,app->{
            app.filter(-1, new CrossFilter().allowedOrigins("*")); //加-1 优先级更高
            LogUtil.globalSet(new LogUtilToSlf4j());
            app.enableWebSocket(true);
        });
    }
}